package org.westos.demo2;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class Service {
    public static void main(String[] args) throws IOException {
        ServerSocket socket = new ServerSocket(9999);
        Socket accept = socket.accept();
        System.out.println("服务器已连接");
        InputStream in = accept.getInputStream();
        OutputStream out = accept.getOutputStream();


    }
}
